package com.nstar.base.util
{
	import mx.controls.Alert;
	import com.nstar.base.controls.ButtonAssets;
	import flash.display.Sprite;
	import mx.core.Application;
	
	public class AlertUtils
	{
		//初始化应用
		public static function initialize():void{
			//对话框属性设置
			Alert.okLabel = "确 定";
			Alert.cancelLabel = "取 消";
			Alert.yesLabel = "是";
			Alert.noLabel = "否";			
		}	
		
		//提示显示信息对话框，添加了默认的标题栏和图标
		public static function show(msg:String,flags:uint = 4.0):Alert{
			initialize();
			var sprite:Sprite = Sprite(Application.application);
			return Alert.show(msg,"提示信息",flags,sprite,null,ButtonAssets.helpIcon);
		}
		
		public static function popup():void{
			
		}
	}
	
	
}